export const formConfig = {
  labelWidth: '100%',
  labelPosition: 'top',
  size: 'mini',
}

export const setformList = (labelDefault, formList = []) => [
  {
    label: '标题',
    type: 'input',
    key: 'label',
    default: labelDefault,
    span: 24,
  },
  {
    type: 'slider',
    label: '标签宽度',
    key: 'labelWidth',
    default: 24,
    min: 1,
    max: 24,
    span: 24,
  },
  {
    type: 'input',
    label: '数据字段',
    key: 'key',
    default: '',
    span: 24,
  },
  {
    type: 'switch',
    label: '禁用',
    key: 'disabled',
    default: false,
    span: 24,
  },
  ...formList
]